package Model;

/**
 * Write a description of class Medarbejder here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Medarbejder extends Person
{
    // instance variables - replace the example below with your own
    private int id;
    private int salgstal;
    private double loen;

    /**
     * Constructor for objects of class Medarbejder
     */
    public Medarbejder(String navn, String adresse, int tlfnr, String by, String email, int id, double loen)
    {
        super(navn,adresse,tlfnr,by,email);
        this.id = id;
        this.loen = loen;
    }

    /**
     * this method can give id a new value
     * 
     * @param id
     * @return nothing
     */
    public void setId(int id)
    {
        this.id = id;
    }

    /**
     * this method can give salgstal a new value
     * 
     * @param salgstal
     * @return nothing
     */
    public void setSalgstal(int salgstal)
    {
        this.salgstal = salgstal;
    }

    /**
     * this method can give loen a new value
     * 
     * @param loen
     * @return nothing
     */
    public void setLoen(double loen)
    {
        this.loen = loen;
    }

    /**
     * this method can return id
     * 
     * @param nothing
     * @return id
     */
    public int getId()
    {
        return this.id;
    }

    /**
     * this method can return salgstal
     * 
     * @param nothing
     * @return salgstal
     */
    public int getSalgstal()
    {
        return salgstal;
    }

    /**
     * this method can return loen 
     * 
     * @param nothing
     * @return loen
     */
    public double getLoen()
    {
        return this.loen;
    }
}
